package com.tt.plat8.commons.ui;

import com.tt.plat8.theme.Plat8;
import com.vaadin.ui.Label;
import com.vaadin.ui.themes.Reindeer;

public abstract class Components {

	public static Label h2(String caption) {
		Label h2Label = new Label(caption);
		h2Label.setSizeUndefined();
		h2Label.setStyleName(Plat8.LABEL_H2);
		return h2Label;
	}

	public static Label h1(String caption) {
		Label h1Label = h1();
		h1Label.setCaption(caption);
		return h1();
	}

	public static Label h1() {
		Label h1Label = new Label();
		h1Label.setSizeUndefined();
		h1Label.setStyleName(Reindeer.LABEL_H1);
		return h1Label;
	}

	public static Label labelSmall(String caption) {
		Label small = new Label(caption);
		small.setStyleName(Reindeer.LABEL_SMALL);
		return small;
	}

}
